<?xml version="1.0" encoding="UTF-8"?>
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html">
	<form name="loginForm" method="post" action="/portal/loginservlet">
	<h:panelGroup rendered="#{!usuario.signed}">
<!--		<h:form name="loginForm" >	-->
		
			<h:panelGrid columns="5">
	
			    <h:outputLabel for="txtUserName" styleClass="edtLogin">Usuário:</h:outputLabel>
			    <h:inputText id="txtUserName" required="true" styleClass="edtLogin"/>
		
			    <h:outputLabel for="txtPassword" styleClass="edtLogin">Senha:</h:outputLabel>
			    <h:inputSecret id="txtPassword" required="true" styleClass="edtLogin"/>
		
			    <h:commandButton value="Login" styleClass="btnLogin" />
	
		    </h:panelGrid>
		
<!--		</h:form>	-->

	</h:panelGroup>
	<h:panelGroup rendered="#{usuario.signed}">
<!--		<h:form>-->
			<h:panelGrid columns="2">
				<h:outputText value="#{usuario.userName}" />

				<h:commandButton value="Sair" styleClass="btnLogin" />
			</h:panelGrid>
<!--		</h:form>-->
	</h:panelGroup>
	</form>
</ui:composition>
